
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja" id="main">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<title>Stage 类</title>
	<link rel="stylesheet" href="../inc/css/style.min.css" />
	<script type="text/javascript" src="../inc/js/lib/jquery-1.11.1.min.js"></script>
	<script type="text/javascript" src="../inc/js/common.js"></script>
</head>
<body>

	<div class="main">

		<h1 class="main__title--h1 main__title--h1--v07">Stage 类</h1>
		<ul class="breadcrumb">
			<li>JS 库</li>
			<li>&gt;</li>
			<li>Stage 类</li>
		</ul>
		<p>显示树的根对象。</p>
		<div class="main__section">
			<h2 class="main__title--h2">构造函数</h2>
<pre class="main__pre--code">
Stage ()
</pre>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">索引</h2>
			<b>方法</b>
			<ul class="main__ul--inline">
				<li><a href="#m01">addChild</a></li>
				<li><a href="#m02">addChildAt</a></li>
				<li><a href="#m03">removeChild</a></li>
				<li><a href="#m04">removeChildAt</a></li>
			</ul>

			<b>属性</b>
			<ul class="main__ul--inline">
				<li><a href="#p01">children</a></li>
			</ul>
		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">方法</h2>

			<div id="m01" class="main__subsection">
<pre class="main__pre--code">
addChild ( child ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">向容器中添加子元素。</p>
				<div class="params">
				<h4>参数：</h4>
				<ul class="params-list">
					<li class="param">
						<code class="param-name">child</code>
						<span class="type">Object</span>
						<div class="param-description">
							<p>待添加的子元素</p>
						</div>
					</li>
				</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span><br />
					被添加的子元素</p>
				</div>
			</div><!-- /div -->

			<div id="m02" class="main__subsection">
<pre class="main__pre--code">
addChildAt ( child  index ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">在容器指定索引的位置添加子元素。</p>
				<div class="params">
				<h4>参数：</h4>
				<ul class="params-list">
					<li class="param">
						<code class="param-name">child</code>
						<span class="type">Object</span>
						<div class="param-description">
							<p>待添加的子元素</p>
						</div>
					</li>
					<li class="param">
						<code class="param-name">index</code>
						<span class="type">Number</span>
						<div class="param-description">
							<p>指定的索引</p>
						</div>
					</li>
				</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span><br />
					被添加的子元素</p>
				</div>
			</div><!-- /div -->

			<div id="m03" class="main__subsection">
<pre class="main__pre--code">
removeChild ( child ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">从容器中移除子元素。</p>
				<div class="params">
				<h4>参数：</h4>
				<ul class="params-list">
					<li class="param">
						<code class="param-name">child</code>
						<span class="type">Object</span>
						<div class="param-description">
							<p>待移除的子元素</p>
						</div>
					</li>
				</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span><br />
					被移除的子元素</p>
				</div>
			</div><!-- /div -->

			<div id="m04" class="main__subsection">
<pre class="main__pre--code">
removeChildAt ( index ) <span class="pre__type">Object</span>
</pre>
				<p class="mb10px">移除容器指定索引位置的子元素。</p>
				<div class="params">
				<h4>参数：</h4>
				<ul class="params-list">
					<li class="param">
						<code class="param-name">index</code>
						<span class="type">Number</span>
						<div class="param-description">
							<p>指定的索引</p>
						</div>
					</li>
				</ul>
					<h4>返回值：</h4>
					<p><span class="pre__type">Object:</span><br />
					被移除的子元素</p>
				</div>
			</div><!-- /div -->

		</div><!-- /main__section -->


		<div class="main__section">
			<h2 class="main__title--h2">属性</h2>

			<div id="p01" class="main__subsection">
<pre class="main__pre--code">
children <span class="pre__type">Array</span>
</pre>
<!-- 				<p class="mb10px">[read-only] The array of children of the sprite.</p> -->
				<p class="mb10px">[只读] Stage 的子元素数组。</p>
			</div><!-- /div -->
		</div><!-- /main__section -->


	</div><!-- /main -->

</body>
</html>
